From 69599b010fd8ef3e1e5dc418d15961275f9c702e Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Fri, 4 Apr 2025 11:09:38 +0200 Subject: [PATCH] if we are going to need modified permissions: always change we might need to change the permissions, so do it instead of trying to be smart Signed-off-by: Matthieu Gallien --- src/libsync/filesystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsync/filesystem.cpp b/src/libsync/filesystem.cpp index 580562acc..ecf950fe3 100644 --- a/src/libsync/filesystem.cpp +++ b/src/libsync/filesystem.cpp @@ -535,8 +535,8 @@ FileSystem::FilePermissionsRestore::FilePermissionsRestore(const QString &path, _initialPermissions = FileSystem::isFolderReadOnly(stdStrPath) ? OCC::FileSystem::FolderPermissions::ReadOnly : OCC::FileSystem::FolderPermissions::ReadWrite; if (_initialPermissions != temporaryPermissions) { _rollbackNeeded = true; - FileSystem::setFolderPermissions(_path, temporaryPermissions); } + FileSystem::setFolderPermissions(_path, temporaryPermissions); } catch (const std::filesystem::filesystem_error &e) { -- 2.30.2